<?php
    if(!empty($form['#expert_id'])){
        $info = get_expert_info($form['#expert_id'])?>
        <div class="userinfo" style="height: 70px;padding-top: 0px">
            <div class="user-content" style="margin-top:15px;">
                <p>专家姓名：<?php echo  $info->experts_name;?></p>
                <p>地址：<?php echo  $info->address;?></p>
            </div>
        </div>
<?php }?>
<div class="hp-tab-newprd">
    <ul class="j-sw-nav">
        <?php
        if(!empty($form['#expert_id'])){?>
            <li class="newprd-s1 tab-li on"><a href="<?php echo base_path();?>experts_work/list?expert_id=<?php echo $form['#expert_id']?>">查看</a></li>
        <?php }else{?>
            <li class="newprd-s1 tab-li on"><a href="<?php echo base_path();?>experts_work/list">查看</a></li>
        <?php } if(user_access('add experts_work')){?>
            <?php if(!empty($form['#expert_id'])){?>
                <li class="newprd-s2 tab-li"><a href="<?php echo base_path();?>experts_work/add?expert_id=<?php echo $form['#expert_id']?>">添加</a></li>
            <?php }else{?>
                <li class="newprd-s2 tab-li"><a href="<?php echo base_path();?>experts_work/add">添加</a></li>
            <?php }
        }?>
    </ul>
    <div class="newprd-s1">
        <div class="table-div">
            <div class="search-div">
                <div class="small-select small-input" style="clear:both"><div class="search-label">请选年份:</div><?php print render($form['year']); ?></div>
                <div class="small-select small-input"><div class="search-label">请选月份:</div><?php print render($form['month']); ?></div>
                <div class="small-select max-big-input">
                    <div class="search-label">标题:</div><?php print render($form['title_fuzzy']); ?>
                </div>
                <div class="small-select max-big-input">
                    <div class="search-label">内容:</div><?php print render($form['content_fuzzy']); ?>
                </div>

                <div class="small-select big-input"<?php   if(!empty($form['#expert_id'])){ echo "style='display:none'";} ?>>
                    <div class="search-label">参与专家:</div><?php print render($form['experts_name']); ?>
                </div>
                <div class="small-select big-input">
                    <div class="search-label">参与人员:</div><?php print render($form['attendees_fuzzy']); ?>
                </div>
                <div class="small-select big-input">
                    <div class="search-label">填报人:</div><?php print render($form['author_uid']); ?>
                </div>
                <div class="search-submit"><?php print render($form['submit']); ?></div>
            </div>

            <div class="stats-div"><span>专家工作记录统计结果</span></div>
            <div class="table-div">
                <div class="farmer-field" style="margin-top: 0px">
                    <div class="farmer-field-div">
                        <span>总条目:</span>
                        <span><?php echo $form['#stat']['#count']; ?>条</span>
                    </div>
                </div>
            </div>

            <img class="res-search" src='<?php echo base_path();?>sites/all/themes/tweme/images/images/res.png'>
            <div class="table-div">
                <?php print render($form['table']); ?>
            </div>
        </div>
    </div>
</div>

<?php print drupal_render_children($form); ?>